<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>宿管主界面</title>
    <link href="../css/bootstrap.min.css" type="text/css" rel="stylesheet" />
    <link href="../css/button1.css" rel="stylesheet">
    <script src="../js/jquery.min.js"></script>
    <style>
        /*背景*/
        body{
            background-color: #e1ecec;
        }
        /*欢迎信息*/
        #welcome{
            font-size: 30px;
            margin-left: 600px;
        }
        #welcome_name{
            font-size: 20px;
        }
        #exit{
            margin-left: 50px;
            color: #2aabd2;
        }
        #img_hint{
            width: 300px;
        }

        /*按钮居中*/
        .but_1{
            width: 160px;
            height: 45px;
            margin: auto;
            margin-top: 20px;
        }

    </style>
    <script>
        $(function () {
            //页面加载完成，向后台发送ajax请求，获得老师的信息，用于欢迎信息展示
            $.get("tea/getTeacher",{},function (data) {
                $("#welcome_name").html(data.tname);
            },"json");

            //给各个按钮添加单击事件
            $("#query_apply_for").click(function () {
                location.href="query_apply_for.html";
            });
            $("#add_violate").click(function () {
                location.href="add_violate.html";
            });
            $("#stranger").click(function () {
                location.href="query_stranger.html";
            });
            $("#updata_information").click(function () {
                location.href="update_ste_information.html";
            });
            $("#light").click(function () {
                location.href="http://www.nlecloud.com/project/110017/device/overview?devid=231099";
            });
            $("#doorForbidding").click(function () {
                location.href="doorForbidding.html";
            });

        });
    </script>

</head>
<body>
    <!-- 宣传语 -->
    <img src="../img/tea_1.png" id="img_propagation">
    <span id="welcome">欢迎您：</span>
    <span id="welcome_name">aaa</span>
    <a href="javascript:location.href='tea/exit';" id="exit">退出登录</a>
    <!-- 选择操作图片 -->
    <div style="height: 65px;width: 250px;margin: auto;margin-top: 50px"><img src="../img/stu_2.png" id="img_hint"></div>
    <!-- 按钮 -->
    <!-- 按钮 -->
    <div class="but_1"><button id="query_apply_for" class="custom-btn btn-1">查询学生申请</button> </div>
    <div class="but_1"><button id="add_violate" class="custom-btn btn-9">添加违纪情况</button> </div>
    <div class="but_1"><button id="stranger" class="custom-btn btn-1">外访人员管理</button> </div>
    <div class="but_1"><button id="updata_information" class="custom-btn btn-9">更新楼栋信息</button> </div>
    <div class="but_1"><button id="light" class="custom-btn btn-1">楼层灯光控制</button> </div>
    <div class="but_1"><button id="doorForbidding" class="custom-btn btn-9">门禁系统</button> </div>

</body>
</html>